﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using DormMS.IService;

namespace WeChat.Controllers
{
    public class HomeController : BaseController
    {
        private IShopService shopservice;

        public HomeController(IMemberService s, IShopService _shopservice) : base(s)
        {
            shopservice = _shopservice;
        }

        [HttpGet]
        public ActionResult Index()
        {
            return View();
        }


        [HttpPost]
        public ActionResult ShopIndex()
        {
            return Json(shopservice.ShopIndex());
        }

    }
}